import { Route, Link } from "react-router-dom"
import Home from "./components/Home"
import Detail from "./components/Detail"
export default function App() {
  return (
    <div>
      <Link to={"/home"}>home</Link>
      <br />
      <Link to={"/detail"}>detail</Link>
      <hr />
      <Route path="/" component={Home} exact></Route>
      <Route path="/home" component={Home}></Route>
      <Route path="/detail" component={Detail}></Route>
      <hr />
    </div>
  )
}
